package service;

import entity.User;
import mapper.UserMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class UserServiceImpl implements UserService {
    @Resource
    private UserMapper userMapper;


    @Override
    public int zhuce(String userCode, String userPassword) {
        return userMapper.zhuce(userCode,userPassword);
    }

    @Override
    public User getUserById(String userCode, String userPassword) {
        return userMapper.getUserById(userCode,userPassword);
    }

    @Override
    public List<User> searchAll() {
        return userMapper.searchAll();
    }


}
